<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateExaminfosTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     * 考试信息表
     */
    public function up()
    {
        Schema::create('examinfos', function (Blueprint $table) {
            $table->id();
            $table->string('test_name',50)->comment('考试名称');
            $table->string('class_name',50)->comment('班级名称');
            $table->string('teacher')->comment('任课老师');
            $table->string('class_teacher')->comment('班主任');
            $table->unsignedInteger('full_mark')->comment('满分');
            $table->timestamps();
            $table->softDeletes();
        });
    }
    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('examinfos');
    }
}
